package cn.itcast.order.web;

import cn.itcast.order.service.OrderService;
import org.orz.cloud.common.result.ResultDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("transactional")
public class TransactionalTestController {
    @Autowired
    private OrderService orderService;

    @PostMapping("testNotSupported")
    public ResultDTO testNotSupported(){
        orderService.testNotSupported();
        return ResultDTO.success();
    }

}
